package entity

type CommDeviceOnline struct {
	Id           int64 `json:"id,string"                         gorm:"column:id;primaryKey;autoIncrement:false;comment:主键;"`
	CommDeviceId int64 `json:"commDeviceId,string"                         gorm:"column:comm_device_id;comment:设备编号;"`

	OnlineDt string `json:"onlineDt"                         gorm:"column:online_dt;size:20;comment:上线时间;"`
	OffDt    string `json:"offDt"                         gorm:"column:off_dt;size:20;comment:下线时间;"`
	Seconds  int    `json:"seconds"                         gorm:"column:seconds;comment:在线秒数;"`
}

func (p *CommDeviceOnline) TableName() string {
	return "CommDeviceOnline"
}
